package org.feng.api.animal.service;

import io.swagger.annotations.ApiOperation;
import org.feng.api.PageBean;
import org.feng.api.ResultVo;
import org.feng.api.animal.request.AddAndUpdateAnimalRequest;
import org.feng.api.animal.request.DeleteAnimalRequest;
import org.feng.api.animal.request.QueryAnimalRequest;
import org.feng.api.animal.response.AddAndUpdateAnimalDto;
import org.feng.api.animal.response.DeleteAnimalDto;
import org.feng.api.animal.response.QueryAnimalVo;

/**
 * 动物api
 *
 * @author feng
 */
public interface AnimalApi {

    @ApiOperation("删除动物")
    ResultVo<DeleteAnimalDto> deleteAnimal(DeleteAnimalRequest request);

    @ApiOperation("修改动物")
    ResultVo<AddAndUpdateAnimalDto> updateAnimal(AddAndUpdateAnimalRequest request);

    @ApiOperation("新增动物")
    ResultVo<AddAndUpdateAnimalDto> addAnimal(AddAndUpdateAnimalRequest request);

    @ApiOperation("查询动物")
    ResultVo<PageBean<QueryAnimalVo>> queryAnimal(QueryAnimalRequest request);
}
